package batframework.mvc.proxy;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringProxy implements Proxy
{
	private static final ApplicationContext context = new  ClassPathXmlApplicationContext("classpath:appcontext*.xml");
	
	public Object getObject(Class<?> bean)
	{
		return context.getBean(bean);
	}

}
